class FishContainer extends egret.DisplayObjectContainer {
    public constructor() {
        super();
    }

    private fishes:Fish[]=[];

    private add(fish: Fish) {
        if(this.fishes.length>=this.max){
            return;
        }
        this.fishes.push(fish);
        this.addChild(fish);
        fish.play();
    }

    private remove(fish:Fish){

    }

    private min: number;
    private max: number;

    public setMin(min: number) {
        this.min = min;
    }

    public setMax(max: number) {
        this.max = max;
    }
}

